		function debug(log){
			var conLog = document.getElementById("console");
			conLog.innerText += log +"\n";
		}
        function generatorContent(args){
            var frag = document.createDocumentFragment();
            if(args.pSize){
                for (var cell=0, cl=args.pSize/args.cSize; cell<cl; cell++) {
                    var elem = document.createElement("div");
                    elem.className = "cell";
                    elem.style.backgroundColor = cell%2 > 0 ? "#ddd" : "";
                    elem.innerHTML = cell+1;
                    frag.appendChild(elem);
                }
            } else {
                for (var i=0; i<10; i++) {
                    var elem = document.createElement("p");
                     elem.innerHTML = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris consequat neque vel mi pellentesque laoreet. Praesent in nisi ut lacus fringilla fringilla id eget orci. Maecenas eget varius dolor. Pellentesque dignissim, libero at convallis aliquet, nibh mauris aliquam lacus, nec ornare libero arcu eget risus. Quisque quis nulla quis felis convallis feugiat sed tempus erat. Cras nec ante leo, vel aliquam dui. Vestibulum ut magna velit, eget luctus mi. Nullam eget sapien sit amet velit sagittis gravida ut in neque. Sed fermentum dui sed lorem malesuada nec adipiscing diam tempor. Etiam at augue ut ipsum scelerisque ullamcorper. Integer vehicula orci posuere sem tristique ac tempus odio facilisis. In mattis felis sed lacus consequat aliquet mollis lacus porta. Nullam ullamcorper risus et purus vulputate nec dignissim mauris imperdiet.";
                    frag.appendChild(elem);
                }
            }
            return frag;
        }
        function setScroller(type){
            var container = document.getElementById("content");
            var scrollerGenerator = ({
                "verticals":function(type){
                    VCM.debug(type);
                    var elem = document.createElement("div");
                    elem.className = "scroller_content";
                    elem.appendChild(generatorContent({}));
                    VCM.debug(container.hasChildNodes());
                    if(container.hasChildNodes()){
                        container.removeChild(container.firstChild);
                        container.appendChild(elem);
                    } else {
                        container.appendChild(elem);
                    }
                    VCM.scroller(elem,{scrollingX : false});
                },
                "horizontal":function(type){
                    VCM.debug(type);
                    var elem = document.createElement("div");
                    elem.className = "scroller_content scroller_paging_horizontal";
                    elem.style.width = "4800px";
                    elem.appendChild(generatorContent({}));
                    VCM.debug(container.hasChildNodes());
                    if(container.hasChildNodes()){
                        container.removeChild(container.firstChild);
                        container.appendChild(elem);
                    } else {
                        container.appendChild(elem);
                    }
                    new VCM.scroller(elem,{
                        scrollingY : false
                    });
                },
                "pagingX":function(type){
                    VCM.debug(type);
                    var elem = document.createElement("div");
                    elem.className = "scroller_content scroller_paging_verticals";
                    elem.style.width = "6000px";
                    elem.appendChild(generatorContent({pSize:6000,cSize:600}));
                    if(container.hasChildNodes()){
                        container.removeChild(container.firstChild);
                        container.appendChild(elem);
                    } else {
                        container.appendChild(elem);
                    }
                    new VCM.scroller(elem,{
                        scrollingY: false,
                        paging: true
                    });
                },
                "pagingY":function(type){
                    VCM.debug(type);
                    var elem = document.createElement("div");
                    elem.className = "scroller_content scroller_paging_horizontal";
                    elem.appendChild(generatorContent({pSize:6000,cSize:600}));
                    VCM.debug(container.hasChildNodes());
                    if(container.hasChildNodes()){
                        container.removeChild(container.firstChild);
                        container.appendChild(elem);
                    } else {
                        container.appendChild(elem);
                    }
                    new VCM.scroller(elem,{
                        scrollingX: false,
                        paging: true
                    });
                }
            }[type])(type);
            
        }